/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2016-2019 Skyatlas co. ltd

   
*/

#ifndef BAREOS_DIRD_NDMP_DMA_BACKUP_COMMON_H_
#define BAREOS_DIRD_NDMP_DMA_BACKUP_COMMON_H_

struct ndm_job_param;
struct ndmlog;

namespace directordaemon {

bool FillBackupEnvironment(JobControlRecord* jcr,
                           IncludeExcludeItem* ie,
                           char* filesystem,
                           struct ndm_job_param* job);
int NativeToNdmpLevel(JobControlRecord* jcr, char* filesystem);
void RegisterCallbackHooks(struct ndmlog* ixlog);
void UnregisterCallbackHooks(struct ndmlog* ixlog);
void ProcessFhdb(struct ndmlog* ixlog);
void NdmpBackupCleanup(JobControlRecord* jcr, int TermCode);

} /* namespace directordaemon */
#endif  // BAREOS_DIRD_NDMP_DMA_BACKUP_COMMON_H_
